package com.origin.ebuy.bargd.dao.user;

import java.sql.SQLException;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

public interface IUserDao {
	
	public JSONObject queryUserByName(String name)throws SQLException;
	
	public int insertUser(String name,String passwd)throws SQLException;
	
	/**
	 * 查询所有用户
	 * @return
	 * @throws SQLException
	 */
	public JSONArray queryAllUser()throws SQLException;
	
	/**
	 * 更新用户角色
	 * @param id
	 * @param rule
	 * @return
	 * @throws SQLException
	 */
	public int updateUser(String whre,String[] cols,Object[] params)throws SQLException;
	
}
